<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/socket/SockException.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_9ad1227260954e346101f3844f0abb3d.html">socket</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">SockException.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_sock_exception_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __SOCKEXCEPTION_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __SOCKEXCEPTION_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;../tools/tools.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;exception&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_c_sock_exception.html">   12</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_c_sock_exception.html">CSockException</a> :<span class="keyword">public</span> std::exception</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;{</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_c_sock_exception.html#a475248240737fdeec5996d8ea5f2ec8c">   15</a></span>&#160;    <a class="code" href="class_c_sock_exception.html#a475248240737fdeec5996d8ea5f2ec8c">CSockException</a>() {}</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_c_sock_exception.html#af4a1e6c192fe02a77ae7962e88484f93">   16</a></span>&#160;    <a class="code" href="class_c_sock_exception.html#af4a1e6c192fe02a77ae7962e88484f93">CSockException</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* msg) :<a class="code" href="class_c_sock_exception.html#a867b96dd6b24964ff6d1f60b0fe1a44c">_msg</a>(msg){}</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_c_sock_exception.html#a5521469932585a806823445ca60e9801">   17</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_c_sock_exception.html#a5521469932585a806823445ca60e9801">~CSockException</a>() throw() {}</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_c_sock_exception.html#ab650b96ef97086c74b25b1c78b8da7e2">   18</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_c_sock_exception.html#ab650b96ef97086c74b25b1c78b8da7e2">what</a>() <span class="keyword">const</span> throw() { <span class="keywordflow">return</span> <a class="code" href="class_c_sock_exception.html#a867b96dd6b24964ff6d1f60b0fe1a44c">_msg</a>.c_str(); }</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_c_sock_exception.html#a867b96dd6b24964ff6d1f60b0fe1a44c">   20</a></span>&#160;    std::string <a class="code" href="class_c_sock_exception.html#a867b96dd6b24964ff6d1f60b0fe1a44c">_msg</a>;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;};</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#endif // __SOCKEXCEPTION_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_c_sock_exception_html_ab650b96ef97086c74b25b1c78b8da7e2"><div class="ttname"><a href="class_c_sock_exception.html#ab650b96ef97086c74b25b1c78b8da7e2">CSockException::what</a></div><div class="ttdeci">virtual const char * what() const</div><div class="ttdef"><b>Definition:</b> <a href="_sock_exception_8h_source.html#l00018">SockException.h:18</a></div></div>
<div class="ttc" id="aclass_c_sock_exception_html_a867b96dd6b24964ff6d1f60b0fe1a44c"><div class="ttname"><a href="class_c_sock_exception.html#a867b96dd6b24964ff6d1f60b0fe1a44c">CSockException::_msg</a></div><div class="ttdeci">std::string _msg</div><div class="ttdef"><b>Definition:</b> <a href="_sock_exception_8h_source.html#l00020">SockException.h:20</a></div></div>
<div class="ttc" id="aclass_c_sock_exception_html_af4a1e6c192fe02a77ae7962e88484f93"><div class="ttname"><a href="class_c_sock_exception.html#af4a1e6c192fe02a77ae7962e88484f93">CSockException::CSockException</a></div><div class="ttdeci">CSockException(const char *msg)</div><div class="ttdef"><b>Definition:</b> <a href="_sock_exception_8h_source.html#l00016">SockException.h:16</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="aclass_c_sock_exception_html_a475248240737fdeec5996d8ea5f2ec8c"><div class="ttname"><a href="class_c_sock_exception.html#a475248240737fdeec5996d8ea5f2ec8c">CSockException::CSockException</a></div><div class="ttdeci">CSockException()</div><div class="ttdef"><b>Definition:</b> <a href="_sock_exception_8h_source.html#l00015">SockException.h:15</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="aclass_c_sock_exception_html"><div class="ttname"><a href="class_c_sock_exception.html">CSockException</a></div><div class="ttdoc">sockeet操作异常类</div><div class="ttdef"><b>Definition:</b> <a href="_sock_exception_8h_source.html#l00012">SockException.h:12</a></div></div>
<div class="ttc" id="aclass_c_sock_exception_html_a5521469932585a806823445ca60e9801"><div class="ttname"><a href="class_c_sock_exception.html#a5521469932585a806823445ca60e9801">CSockException::~CSockException</a></div><div class="ttdeci">virtual ~CSockException()</div><div class="ttdef"><b>Definition:</b> <a href="_sock_exception_8h_source.html#l00017">SockException.h:17</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
